Skip to content

Conversation

toufreach5
Copy link

Hello,
This PR is inspired from #314 never respond to question)

It will add following metrics:

  • elasticsearch_transport_tcp_connections_open_current
  • elasticsearch_transport_outbound_connections_total
  • elasticsearch_http_connections_opened_current
  • elasticsearch_http_connections_opened_total

Thanks.

Signed-off-by: Alexandre Le Madec <[email protected]>
@@ -37,7 +37,7 @@ type NodeStatsNodeResponse struct {
ThreadPool map[string]NodeStatsThreadPoolPoolResponse `json:"thread_pool"`
JVM NodeStatsJVMResponse `json:"jvm"`
Breakers map[string]NodeStatsBreakersResponse `json:"breakers"`
HTTP map[string]interface{} `json:"http"`
HTTP *NodeStatsHTTPResponse `json:"http"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a pointer?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to change this condition:
if len(node.HTTP) == 0 {
to if node.HTTP == nil {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @sysadmind, any update/concern on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants